package charts.series.dots;
import charts.Structs.DotStyleStruct;

class DefaultDotProperties extends Properties {
	//
	// things that all dots share
	//
	public function new(json:Dynamic, colour:String, axis:String) {
		// Tr.ace_json(json);
		
		// the user JSON can override any of these:
/*
		var parent:Properties = new Properties( {
			axis:			axis,
			'type':			'dot',
			'dot-size': 	5,
			'halo-size':	2,
			'colour':		colour,
			'tip':			'#val#',
			alpha:			1,
			// this is for anchors:
			rotation:		0,
			sides:			3,
			// this is for hollow dot:
			width:			1
		});*/

		var obj : DotStyle = {
			axis : axis
			,type : 'dot'
			,dot_size : 5
			,halo_size : 2
			,colour : colour
			,tip : '#val#'
			,alpha : 1
			,rotation : 0
			,sides : 3
			,width : 1
		}

		var parent = new Properties(obj);		
			
		super( json, parent );
		
		// traces('4', this.get('axis'));
		// Tr.acesPortMe('4', this.get('colour'));
		// Tr.acesPortMe('4', this.get('type'));
	}
}
